<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use App\Common\Tools\ImageUrl;

class Banner extends Model
{
    protected $table = 'activity_banners';
    protected $guarded = [];
    protected $casts = [
        'type' => 'array',
    ];

    public function getImgAttribute($url)
    {
        return ImageUrl::make($url);
    }

    public function getImgxAttribute($url)
    {
        return ImageUrl::make($url);
    }
}